package com.monika.webservice.endpoint;

import cn.com.webxml.ArrayOfString;
import cn.com.webxml.MobileCodeWSSoap;

import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
import java.time.LocalDateTime;

/**
 * @author:whh
 * @date: 2025-07-30 20:50
 * <p></p>
 */
@WebService(
        serviceName = "MobileCodeWSSoap",
        targetNamespace = "http://WebXml.com.cn/",
        name = "MobileCodeWSSoap",
        endpointInterface = "cn.com.webxml.MobileCodeWSSoap")
public class MobileCodeWSSoapImpl implements MobileCodeWSSoap {
    @Override
    @WebMethod(action = "http://WebXml.com.cn/getMobileCodeInfo")
    @RequestWrapper(localName = "getMobileCodeInfo", targetNamespace = "http://WebXml.com.cn/", className = "cn.com.webxml.GetMobileCodeInfo")
    @ResponseWrapper(localName = "getMobileCodeInfoResponse", targetNamespace = "http://WebXml.com.cn/", className = "cn.com.webxml.GetMobileCodeInfoResponse")
    @WebResult(name = "getMobileCodeInfoResult", targetNamespace = "http://WebXml.com.cn/")
    public String getMobileCodeInfo(String s, String s1) {
        System.out.println(s);
        System.out.println(Thread.currentThread().getName());
        return LocalDateTime.now().toString();
    }

    @Override
    public ArrayOfString getDatabaseInfo() {
        return null;
    }
}
